package com.podcstr.dao;

import com.podcstr.entity.Podcast;

import java.util.List;

/**
 * @author azim
 * @since 5/16/13 
 */
public interface PodcastDao extends GenericDao<Podcast, Long> {

    void toggleAccess(long podcastID);

    Podcast findByPodcastName(String podcastName);

    List<Podcast> findByUserId(long userId);

    List<Podcast> findByTags(String tag);

    List<Podcast> findByCategoryId(long categoryId);

    long countPodcastByUserId(long userId);

    List<Podcast> searchPodcast(String word);
}
